package com.yuhang.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuhang.demo.dto.request.ConditionAddRequest;
import com.yuhang.demo.dto.request.ConditionUpdateRequest;
import com.yuhang.demo.dto.response.Result;
import com.yuhang.demo.entity.RuleCondition;

import java.util.List;

public interface RuleConditionService extends IService<RuleCondition> {

    Result<Long> addCondition(ConditionAddRequest request);

    Result<Boolean> updateCondition(ConditionUpdateRequest request);

    Result<Boolean> deleteCondition(Long id);

    Result<List<RuleCondition>> getConditionByRuleId(Long ruleId);

    void deleteByRuleId(Long ruleId);
}
